//
//  TopCollectionViewCell.m
//  14-HomeWork
//
//  Created by dllo on 16/8/2.
//  Copyright © 2016年 LST. All rights reserved.
//

#import "TopCollectionViewCell.h"

@interface TopCollectionViewCell ()
@property (nonatomic, strong)UIImageView *topImage;
@property (nonatomic, strong)UILabel *labelTitle;
@property (nonatomic, strong)UILabel *labelGX;
@property (nonatomic, strong)UILabel *labelName;
@end
@implementation TopCollectionViewCell


- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        [self creatSubView:self.bounds];
    }
    return self;
}
- (void)creatSubView:(CGRect)sender {
    
    _topImage = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, self.bounds.size.width / 2, self.bounds.size.height)];
    _topImage.image = [UIImage imageNamed:@"09"];
    [self.contentView addSubview:_topImage];
    _labelTitle = [[UILabel alloc] initWithFrame:CGRectMake(self.bounds.size.width / 2 + 5, 0, 130, 30)];
    _labelTitle.text = @"小满生活公社";
    _labelTitle.numberOfLines = 0;
    _labelTitle.font = [UIFont systemFontOfSize:20];
    [self.contentView addSubview:_labelTitle];
    _labelGX = [[UILabel alloc] initWithFrame:CGRectMake(self.bounds.size.width / 2 + 5, 35, 130, 20)];
    _labelGX.text = @"更新至第28集";
    _labelGX.numberOfLines = 0;
    _labelGX.font = [UIFont systemFontOfSize:17];
    [self.contentView addSubview:_labelGX];
    _labelName = [[UILabel alloc] initWithFrame:CGRectMake(self.bounds.size.width / 2 + 5, 60, 100, 30)];
    _labelName.text = @"小满";
    _labelName.numberOfLines = 0;
    [self.contentView addSubview:_labelName];
}




@end
